package oop5.phone;

//AptitudeHandSet 智能手机
public class AptitudeHandSet extends CommonHandSet implements Online, Picture, Video {
    public static void main(String[] args) {
        AptitudeHandSet smartPhone = new AptitudeHandSet("华为", "p20");
        smartPhone.showFunction();

    }

    public AptitudeHandSet(String brand, String series) {
        super(brand, series);
    }

    @Override
    public void surf() {
        System.out.println(getBrand() + getSeries() + "能上网");
    }

    @Override
    public void takePhotos() {
        System.out.println(getBrand() + getSeries() + "能拍照");
    }

    @Override
    public void playVideo() {
        System.out.println(getBrand() + getSeries() + "能播放视频");
    }

    public void showFunction() {

        call();
        SMS();
        surf();
        takePhotos();
        playVideo();
    }
}
